<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link th:href="@{/css/style.css}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
</head>

<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li>营销管理</li>
        <li>订购单审核管理</li>
        <li>审核</li>
    </ul>
</div>
<form action="/erp/market/orderExamine/auditOrder" method="post" class="formbody">
    <div class="formtitle"><span>订购单审核</span></div>
    <ul class="forminfo">
        <li>
            <label>订单编号</label>
            <cite th:text="${order.orderid}">DJ201711180001</cite>
            <input type="hidden" name="orderid" th:value="${order.orderid}" />
        </li>
        <li>
            <label>客户姓名</label>
            <cite><a th:text="${order.custom.customname}"
                     th:href="@{'/market/customer/findBy?id='+${order.custom.customid}}" title="点击查看客户详细信息"
                     class="tablelink">王金平</a></cite>
        </li>
        <li>
            <label>联系电话</label>
            <cite th:text="${order.custom.telephone}">17370899727</cite>
        </li>
        <li>
            <label>订购时间</label>
            <cite th:text="${order.ordertime}">2017-11-18 15:36:10</cite>
        </li>
        <li>
            <label>总金额</label>
            <cite th:text="${'￥'+order.ordermoney}">￥9,876,582</cite>
        </li>
        <li>
            <label>操作人</label>
            <cite th:text="${order.operatorUser.uname}">关羽</cite>
        </li>
    </ul>
    <table class="tablelist">
        <thead>
        <tr>
            <th>序号</th>
            <th>品牌</th>
            <th>类型</th>
            <th>型号</th>
            <th>数量</th>
            <th>单位</th>
            <th>单价</th>
            <th>金额</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="od,i : ${orderDs}">
            <td th:text="${i.count}">1</td>
            <td th:text="${od.product.cType.cBrand.brandName}">联想</td>
            <td th:text="${od.product.cType.typeName}">笔记本电脑</td>
            <td th:text="${od.product.productModel}">T470</td>
            <td th:text="${od.purchaseNum}">10</td>
            <td>台</td>
            <td th:text="${od.proprice}">9998</td>
            <td th:text="${od.prototal}">99980</td>
        </tr>
        </tbody>
    </table>
    <ul class="forminfo">
        <li>
            <label>审核意见</label>
            <textarea name="opinion" class="textinput">做的很详细，没有问题，同意通过</textarea>
        </li>
        <li>
            <label>审核状态</label>
            <select name="status" class="dfselect">
                <option value="0">请选择</option>
                <option value="3">通过</option>
                <option value="4">不通过</option>
            </select>
        </li>
        <li>
            <label>&nbsp;</label>
            <input name="" type="submit" class="btn" value="审核"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>
        </li>
    </ul>
    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');
    </script>
</body>
</html>
